package fr.cephb.joperon.webapp.tag;

import java.io.IOException;


import javax.servlet.jsp.JspWriter;
import fr.cephb.util.Cast;


public class TaxIdTag  extends AbstractContentTag
	{
	private static final long serialVersionUID = 1L;

	public TaxIdTag()
		{
		}
	
	@Override
	public void print(JspWriter out, String content) throws IOException
		{
		if(!Cast.Integer.isA(content))
			{
			out.print(content);
			}
		else
			{
			int id= Cast.Integer.cast(content);
			out.println("<a href=\"http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Undef&lvl=0&amp;srchmode=1&amp;id="+id+"\">"+id+"</a>");
			}
		}
	
	}
